<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: xiao
  Date: 2020/12/13
  Time: 19:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

</head>
<body>
<script src="${pageContext.request.contextPath}/js/jquery-3.5.1.js"></script>
<h1><span class="label label-default">借阅列表</span></h1>
<table class="table table-hover table-striped">

    <%--               书籍从数据库查询出来，从这个list遍历出来--%>

    <table class="table table-hover table-striped">
        <thead>
        <tr>
            <th>书籍编号</th>
            <th>书籍名称</th>
            <th>借阅的学生账号</th>
            <th>学生姓名</th>
            <th>操作</th>
        </tr>
        </thead>
        <%--               书籍从数据库查询出来，从这个list遍历出来--%>

        <tbody>
        <c:forEach var="blist" items="${borrow_list}">

            <tr>
                <td> ${blist.bookID}</td>
                <td>${blist.bookName}</td>
                <td>${blist.sno}</td>
                <td>${blist.sname}</td>
                <td>   <a href="${pageContext.request.contextPath}/book/admin-borrow-return/${blist.bookID}"><button class="btn btn-info">已还</button></a></td>




            </tr>
        </c:forEach>
        </tbody>
    </table>

</table>
</body>
</html>
